package com.hzw.saas.web.app.msg.param;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *  修改消息已读/未读参数
 * </p>
 *
 * @author sonam
 * @since 2021/1/1 14:27
 */
@Data
@ApiModel("修改消息已读/未读参数")
public class MsgReadParam {
    @NotBlank
    @ApiModelProperty(value = "消息id", required = true)
    private String msgId;

    // 改正则
    @Min(value = 0,  message = "消息设置可读/已读状态失败")
    @Max(value = 1,  message = "消息设置可读/已读状态失败")
    @ApiModelProperty(value = "消息1：已读，0：未读", required = true)
    private Integer read;

}
